package com.ruoyi.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 审批流程对象 t_path_approver
 * 
 * @author mzr
 * @date 2023-12-12
 */
@Data
public class TPathApprover extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 审批人关联id */
    private Long approverId;

    @Transient
    private String userName;

    /** 流程id */
    private Long pathId;

    /** 优先级 */
    private Integer priority;

    /** 审批状态 0-未处理  1-已处理   2 - 已驳回  3-协同处理 4-协同驳回 */
    private Integer status;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("approverId", getApproverId())
            .append("pathId", getPathId())
            .append("status", getStatus())
            .append("priority", getPriority())
            .toString();
    }
}
